"use client";

import React from "react";
import styles from "./FileCard.module.css";
import { Card } from "antd";
import type { ReactNode } from "react";

export interface FileCardProps {
  title?: string;
  date?: string;
  children?: ReactNode;
}

const FileCard: React.FC<FileCardProps> = ({ title, date, children }) => {
  return (
    <div className={styles.card}>
      {title && <h2 className={styles.title}>{title}</h2>}
      {date && <p className={styles.date}>{date}</p>}
      <div className={styles.content}>{children}</div>
    </div>
  );
};

export default FileCard;
